package wiki.hitime.stl.daq.enums;


public enum DbTypeEnum {

    // 数据源类型枚举
    MySQL(1, "MySQL"),
    Oracle(2, "Oracle"),
    ;


    private int status;
    private String msg;

    DbTypeEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return this.status;
    }

    public String getMsg() {
        return this.msg;
    }

    public static DbTypeEnum valueOf(int status) {
        for (DbTypeEnum enumItem : DbTypeEnum.values()) {
            if (enumItem.getStatus() == status) {
                return enumItem;
            }
        }
        return null;
    }
}
